package com.aaa.ssm.util;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix="mysql")
public class DAOUtil {

     private  String  username;

    private  String  password;

    private  String  url;

    private  String  classname;

    @Override
    public String toString() {
        return "DAOUtil{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", url='" + url + '\'' +
                ", className='" + classname + '\'' +
                '}';
    }
}
